package OsUI_AbstractFactory_03;
import OsUI_AbstractFactory_03.Factory.*;

public class OsUIApplication {
    public static void main(String[] args) {
        System.out.println("使用MacFactory");
        MacFactory macFactory = new MacFactory();
        macFactory.createButton().render();
        macFactory.createTextField().render();

        System.out.println("使用WindowsFactory");
        WindowsFactory windowsFactory = new WindowsFactory();
        windowsFactory.createButton().render();
        windowsFactory.createTextField().render();

    }
}
